package bit.study;
import java.sql.*;

public class DBConnect {
	private static Connection conn;
  	static {
  		String url="jdbc:oracle:thin:@127.0.0.1:1521:XE";
		String user="system", pwd="12345";
		try{
			Class.forName("oracle.jdbc.driver.OracleDriver");
			conn = DriverManager.getConnection(url,user,pwd);
		} catch(Exception e){
			e.printStackTrace();
		}
  	}
  	
  	private DBConnect(){}
  	
  	public static Connection getConnect(){
  		return conn;
  	}
}
